<?php 
	
Class BlogRelationModel extends RelationModel{
	Protected $tableName='blog';
	
	Protected $_link=array(
		'attr'=>array(
			'mapping_type'=>MANY_TO_MANY,
			'mapping_name'=>'attr',
			'foreign_key'=>'bid',
			'relation_foreign_key'=>'aid',
			'relation_table'=>'my_blog_attr',
		)
		);

}
?>